#ifndef VIDEOREQUESTTOCLIENT_H
#define VIDEOREQUESTTOCLIENT_H

#include "./entities/message/superClass/message.h"

class VideoRequestToClient : public Message
{
public:
    VideoRequestToClient() = delete;

    VideoRequestToClient(const UserId& requestUserId, const Ip& requestUserIp);
    VideoRequestToClient(const QJsonObject&);
    QJsonObject PackJsonData() const override;
    UserId getRequestUserId() const;
    Ip getRequestUserIp() const;

private:
    UserId m_requestUserId;
    Ip m_requestUserIp;
};

// 编译时注册
Q_DECLARE_METATYPE(VideoRequestToClient)

#endif // VIDEOREQUESTTOCLIENT_H
